package com.renbang.dao.sqlsession;

import java.util.List;

public interface IDao {
		/**
		 * 
		 * @Description:保存
		 * @author:chen
		 * @param str
		 * @param obj
		 * @return int
		 * @date 2017-3-13
		 */
		public int save(String str, Object obj) throws Exception;
		/**
		 * 
		 * @Description:批量保存
		 * @author:chen
		 * @param str
		 * @param list
		 * @return int
		 * @date 2017-3-13
		 */
		public int batchSave(String str, List list) throws Exception;
		/**
		 * 
		 * @Description:修改
		 * @author:chen
		 * @param str
		 * @param obj
		 * @return int
		 * @date 2017-3-13
		 */
		public int update(String str, Object obj) throws Exception;
		/**
		 * 
		 * @Description:删除
		 * @author:user
		 * @param str
		 * @param obj
		 * @return int
		 * @date 2017-3-13
		 */
		public int delete(String str, Object obj) throws Exception;

		/**
		 * 
		 * @Description:批量删除
		 * @author:chen
		 * @param str
		 * @param list
		 * @return int
		 * @date 2017-3-13
		 */
		public int batchDelete(String str, List list) throws Exception;
		/**
		 * 
		 * @Description:查询对象
		 * @author:chen
		 * @param str
		 * @param obj
		 * @return Object
		 * @date 2017-3-13
		 */
		public Object selectForObject(String str, Object obj) throws Exception;

		/**
		 * 
		 * @Description:查询多个对象
		 * @author:chen
		 * @param str
		 * @param obj
		 * @return List
		 * @date 2017-3-13
		 */
		public List selectForList(String str, Object obj) throws Exception;
		
		

}
